package com.kingdee.eas.minghua.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;



public abstract class AbstractWorkFlowHelpFacadeControllerBean extends AbstractBizControllerBean implements WorkFlowHelpFacadeController
{
    protected AbstractWorkFlowHelpFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("C8DA2C5B");
    }

    public boolean setAuditBack(Context ctx, String objectPK) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("eaf80844-489b-47c1-b330-18a86b26a836"), new Object[]{ctx, objectPK});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_setAuditBack(ctx, objectPK);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected boolean _setAuditBack(Context ctx, String objectPK) throws BOSException
    {    	
        return false;
    }

    public boolean setAuditPass(Context ctx, String objectPK) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("7f3e5a6b-4db0-4608-852b-fdfd0560456d"), new Object[]{ctx, objectPK});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_setAuditPass(ctx, objectPK);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected boolean _setAuditPass(Context ctx, String objectPK) throws BOSException
    {    	
        return false;
    }

    public boolean setAuditUnPass(Context ctx, String objectPK) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("622abac7-e96b-4161-828a-7254a14b524a"), new Object[]{ctx, objectPK});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_setAuditUnPass(ctx, objectPK);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected boolean _setAuditUnPass(Context ctx, String objectPK) throws BOSException
    {    	
        return false;
    }

    public Object getProjectManager(Context ctx, String objectPK) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("281e35bf-3f00-42a6-b5cb-dd90136aaaf0"), new Object[]{ctx, objectPK});
            invokeServiceBefore(svcCtx);
            Object retValue = (Object)_getProjectManager(ctx, objectPK);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected Object _getProjectManager(Context ctx, String objectPK) throws BOSException
    {    	
        return null;
    }

    public void setWriteApproveOpion(Context ctx, String objectPK) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("6a2f0d6c-ff9e-4277-bb74-f15ae9721d4b"), new Object[]{ctx, objectPK});
            invokeServiceBefore(svcCtx);
            _setWriteApproveOpion(ctx, objectPK);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _setWriteApproveOpion(Context ctx, String objectPK) throws BOSException
    {    	
        return;
    }

    public boolean isException(Context ctx, String objectPK) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("16c40291-ce6a-4a7d-ac79-224a8196c073"), new Object[]{ctx, objectPK});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_isException(ctx, objectPK);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected boolean _isException(Context ctx, String objectPK) throws BOSException
    {    	
        return false;
    }

    public String getExceptionMsg(Context ctx, String objectPK, int flag) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("b9767d01-7b21-451f-8e0c-55f55b043ff3"), new Object[]{ctx, objectPK, new Integer(flag)});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_getExceptionMsg(ctx, objectPK, flag);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _getExceptionMsg(Context ctx, String objectPK, int flag) throws BOSException
    {    	
        return null;
    }

    public void setMessage(Context ctx, String objectPK) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("f016fd8d-dab1-4070-8c03-b2814748a38d"), new Object[]{ctx, objectPK});
            invokeServiceBefore(svcCtx);
            _setMessage(ctx, objectPK);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _setMessage(Context ctx, String objectPK) throws BOSException
    {    	
        return;
    }

    public Object getAuditPerson(Context ctx, String objectPK) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("741d09a6-89d4-4fad-9aa8-1528b2b8a834"), new Object[]{ctx, objectPK});
            invokeServiceBefore(svcCtx);
            Object retValue = (Object)_getAuditPerson(ctx, objectPK);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected Object _getAuditPerson(Context ctx, String objectPK) throws BOSException
    {    	
        return null;
    }

    public Object getTran(Context ctx, String objectPK) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c14c3656-4745-48ae-bc18-bb56e8c15a0d"), new Object[]{ctx, objectPK});
            invokeServiceBefore(svcCtx);
            Object retValue = (Object)_getTran(ctx, objectPK);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected Object _getTran(Context ctx, String objectPK) throws BOSException
    {    	
        return null;
    }

    public void AppFilter(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("fcfcf2fc-38de-4fb5-a6fd-fb97c4446b3b"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            _AppFilter(ctx);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _AppFilter(Context ctx) throws BOSException
    {    	
        return;
    }

    public void PaymentfromFilter(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("edcef8a0-2528-466e-80dc-a9921abaef0e"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            _PaymentfromFilter(ctx);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _PaymentfromFilter(Context ctx) throws BOSException
    {    	
        return;
    }

    public void setWarnMessage(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("6d547b33-bd05-46e5-93da-c5ab9c03864d"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            _setWarnMessage(ctx);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _setWarnMessage(Context ctx) throws BOSException
    {    	
        return;
    }

    public void setReceivableDate(Context ctx, String objectPK) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("fcdee3fc-70bf-461a-a873-46aecfe5a7a1"), new Object[]{ctx, objectPK});
            invokeServiceBefore(svcCtx);
            _setReceivableDate(ctx, objectPK);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _setReceivableDate(Context ctx, String objectPK) throws BOSException
    {    	
        return;
    }

    public String getProjectOrNumber(Context ctx, String ObjectPK) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("9fa5372b-c861-4871-922b-ca6ef87ed367"), new Object[]{ctx, ObjectPK});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_getProjectOrNumber(ctx, ObjectPK);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _getProjectOrNumber(Context ctx, String ObjectPK) throws BOSException
    {    	
        return null;
    }

}